﻿using System;

namespace h24
{
    class Program
    {
        static void Main(string[] args)
        {
            Solution solution=new Solution();
            int[] a = new[] {1, 2, 3, 1, 2};
            Console.WriteLine(solution.Candy(a));
        }
    }
}